package com.uwlaser.service;

import com.uwlaser.domain.RequestParam;
import com.uwlaser.service.dto.*;

/**
* @author zk-Qin
* @date 2022-05-11
*/
public interface ProductService {

    static final String CACHE_KEY = "productService";

    /**
     * 获取产品序列号
     * @param requestParam
     * @return
     */
    GetProductSnResult getProductSn(RequestParam<GetProductSnParam> requestParam);

    /**
     * 添加产品序列号
     * @param requestParam
     * @return
     */
    AddProductSnResult addProductSn(RequestParam<AddProductSnParam> requestParam);

    /**
     * 获取临时产品型号
     * @param requestParam
     * @return
     */
    GetProductSnResult getTempProductSn(RequestParam<GetProductSnParam> requestParam);

    /**
     * 添加产品序列号 -多个
     * @param requestParam
     * @return
     */
    AddProductSnBatchResult addProductSnBatch(RequestParam<AddProductSnBatchParam> requestParam);

    /**
     * 替换临时产品编码
     * @param requestParam
     */
    void replaceTempProductSn(RequestParam<ReplaceTempProductSnParam> requestParam);
}
